package com.baizhi.entity;

import java.io.Serializable;

//购物车内商品条目类  一个item就是购物车内一个商品条目
public class Item implements Serializable{
	//两个属性  商品对象和商品数量
	private Product product;
	private Integer size;

	public Item() {
		super();
	}
	public Item(Product product, Integer size) {
		super();
		this.product = product;
		this.size = size;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Integer getSize() {
		return size;
	}
	public void setSize(Integer size) {
		this.size = size;
	}
	@Override
	public String toString() {
		return "Item [product=" + product + ", size=" + size + "]";
	}

}
